package Client;

import java.util.*;

public class CurrentTimer {
	private int hour;
	private int minute;
	private int second;
	private Calendar calendar = new GregorianCalendar();
	private String am_pm;
	public String currentTime;
	
	CurrentTimer()
	{
		setHour(calendar.get(Calendar.HOUR));
		setMinute(calendar.get(Calendar.MINUTE));
		setSecond(calendar.get(Calendar.SECOND));
		if (calendar.get(Calendar.AM_PM) == 0)
		{
			setAm_pm("AM");
		}
		else
		{
			setAm_pm("PM");
		}
		currentTime = hour + ":" + minute + ":" + second + am_pm + " : ";
	}
	
	/**
	 * @return the hour
	 */
	public int getHour() {
		return hour;
	}
	/**
	 * @param hour the hour to set
	 */
	public void setHour(int hour) {
		this.hour = hour;
	}
	/**
	 * @return the minute
	 */
	public int getMinute() {
		return minute;
	}
	/**
	 * @param minute the minute to set
	 */
	public void setMinute(int minute) {
		this.minute = minute;
	}
	/**
	 * @return the second
	 */
	public int getSecond() {
		return second;
	}
	/**
	 * @param second the second to set
	 */
	public void setSecond(int second) {
		this.second = second;
	}
	/**
	 * @return the am_pm
	 */
	public String getAm_pm() {
		return am_pm;
	}
	/**
	 * @param am_pm the am_pm to set
	 */
	public void setAm_pm(String am_pm) {
		this.am_pm = am_pm;
	}
}
